package com.test.application.spring.util.reflectionUtil;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@EqualsAndHashCode(callSuper = true)
@Data
public class Student extends Person {
    private String email;
    public Student(String name, Integer age, String gender) {
        super(name, age, gender);
    }

    public Student() {
    }

    @Override
    public void work() {
        System.out.println("学生正在学习...");
    }

    public void homeWork(String course) {
        System.out.println("学生正在做" + course + "作业...");
    }
    public void homeWork() {
        System.out.println("学生正在做作业...");
    }

}
